import request from '@/utils/request'

// 代理商商品
export function getDlsGoods(params) {
  return request({
    url: '/UserActivityApi/dlsGoods',
    method: 'get',
    params
  })
}

// 代理商
export function getNextLevelAgency(params) {
  return request({
    url: '/UserActivityApi/nextLevelAgency',
    method: 'get',
    params
  })
}

// 代理商中心展示业绩明细模块
export function getDlsStatisticalDetail(params) {
  return request({
    url: '/UserServiceApi/getDlsStatisticalDetail',
    method: 'get',
    params
  })
}

// 会员
export function getNextLevelAgencyUser(params) {
  return request({
    url: '/UserActivityApi/nextLevelAgencyUser',
    method: 'get',
    params
  })
}

// 团队订单
export function getAgencyOrder(params) {
  return request({
    url: '/UserActivityApi/agencyOrder',
    method: 'get',
    params
  })
}

// 团队订单详情
export function getAgencyOrderDetail(params) {
  return request({
    url: '/UserActivityApi/agencyOrderDetail',
    method: 'get',
    params
  })
}

// 推荐列表
export function getDlsRecommend(params) {
  return request({
    url: '/UserActivityApi/dlsRecommend',
    method: 'get',
    params
  })
}

// 销售奖订单
export function getDlsSaleRewardOrder(params) {
  return request({
    url: '/UserActivityApi/dlsSaleRewardOrder',
    method: 'get',
    params
  })
}

// 销售奖订单详情
export function getDlsSaleRewardOrderDetail(params) {
  return request({
    url: '/UserDlsApi/dlsSaleRewardOrderDetail',
    method: 'get',
    params
  })
}

// 团队业绩
export function getDlsYeJi(params) {
  return request({
    url: '/UserActivityApi/dlsYeJi',
    method: 'get',
    params
  })
}
// 团队管理业绩
export function getDlsGlj(params) {
  return request({
    url: '/UserActivityApi/dlsGlj',
    method: 'get',
    params
  })
}
// 团队管理业绩详情
export function getDlsGljDetail(params) {
  return request({
    url: '/UserActivityApi/dlsGljDetail',
    method: 'get',
    params
  })
}
// 我的上级代理商
export function parentInfo(params) {
  return request({
    url: '/UserActivityApi/parentInfo',
    method: 'get',
    params
  })
}

// 出单量排行
export function getDlsOrderRanking(params) {
  return request({
    url: '/UserActivityApi/dlsOrderRanking',
    method: 'get',
    params
  })
}

// 代理商团队订单等页面公共数据
export function getDlsOtherInfo(data) {
  return request({
    url: '/UserServiceApi/dlsOtherInfo',
    method: 'post',
    data
  })
}

// 代理商团队订单等页面公共数据
export function getAgencyInfo(params) {
  return request({
    url: '/UserServiceApi/agency',
    method: 'get',
    params
  })
}

// 代理商定制页面下级收益统计
export function getDlsLowersCommissionCountListsApi(params) {
  return request({
    url: '/User/dlsLowersCommissionCountListsApi',
    method: 'get',
    params
  })
}

// 代理商定制页面下级收益统计
export function getDlsSelfBuildPrizeDetailApi(params) {
  return request({
    url: '/User/dlsSelfBuildPrizeDetailApi',
    method: 'get',
    params
  })
}
